/*
 *  JWUtilities.h
 *  KotH
 *
 *  Created by James Weatherley on 10/08/2008.x
 *  Copyright 2008 James Weatherley. All rights reserved.
 *
 */

#define JWHeartRate  (1.0f / 60.0f)

#define SQUARE_SELECTION_OFFSET	100
#define TREE_SELECTION_OFFSET	10000
#define BOX_SELECTION_OFFSET	20000
#define ROBOT_SELECTION_OFFSET	30000

#define JW_DEPS 1e-5

#define MAX_TREES 40


//@class JWSquare;

typedef struct JWSphericalVector
{
	double r;
	double theta;
	double phi;
} JWSphericalVector;

int max(int a, int b);

#ifdef __cplusplus
extern "C" {
#endif
int randomInt(int max);
#ifdef __cplusplus
}
#endif

double angle(double x1, double z1, double x2, double z2);
//void sphericalVector(JWSquare* from, JWSquare* to, JWSphericalVector* vec);
